
// 自动生成模板Equipment
package produce
import (
	"time"
)

// 设备 结构体  Equipment
type Equipment struct {
  Id  *int `json:"id" form:"id" gorm:"primarykey;column:id;size:20;"`  //id字段
  CreatedAt  *time.Time `json:"createdAt" form:"createdAt" gorm:"column:created_at;"`  //注册时间
  UpdatedAt  *time.Time `json:"updatedAt" form:"updatedAt" gorm:"column:updated_at;"`  //修改时间
  DeletedAt  *time.Time `json:"deletedAt" form:"deletedAt" gorm:"column:deleted_at;"`  //删除时间
  EquipmentId  *string `json:"equipmentId" form:"equipmentId" gorm:"uniqueIndex;comment:设备ID;column:equipment_id;size:50;" binding:"required"`  //设备ID
  EquipmentName  *string `json:"equipmentName" form:"equipmentName" gorm:"comment:设备名称;column:equipment_name;size:100;" binding:"required"`  //设备名称
  EquipmentCategory  *string `json:"equipmentCategory" form:"equipmentCategory" gorm:"comment:设备分类;column:equipment_category;size:191;" binding:"required"`  //设备分类
  EquipmentState  *string `json:"equipmentState" form:"equipmentState" gorm:"comment:设备状态;column:equipment_state;size:191;" binding:"required"`  //设备状态
  Remark  *string `json:"remark" form:"remark" gorm:"comment:备注说明;column:remark;"`  //备注说明
}


// TableName 设备 Equipment自定义表名 production_equipment
func (Equipment) TableName() string {
    return "production_equipment"
}





